const Router = require('koa-Router')
const router = new Router()

const {
    createOrder, 
    getOrder, 
    pay, 
    getOrderList, 
    paysuccess,
    delorder,
    getPayStatus
} = require('../../controller/order/index')

router.get('/delorder/:id', delorder)

router.get('/paysuccess/:id', paysuccess)

router.get('/getOrderList/:username', getOrderList)

router.post('/create', createOrder)

router.get('/getOrder/:id', getOrder)

router.post('/pay', pay)

router.post('/getStatus', getPayStatus)

module.exports = router